{% load i18n %}
<html>
<head>
  <title>skoolmaster :: {% block title %}{% endblock %}</title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <link href="/media/favicon.png" rel="shortcut icon" />
  <link type="text/css" rel="stylesheet" href="/media/css/main.css" />
  <script type="text/javascript" src="/media/js/jsi18n.js"></script>
  <script type="text/javascript" src="/media/js/core.js"></script> 
  
  <script type="text/javascript" src="/media/js/jquery-1.4.2.js"></script>
	<script type="text/javascript" src="/media/js/ui/jquery.effects.core.js"></script> 
	<script type="text/javascript" src="/media/js/ui/jquery.effects.blind.js"></script> 
	<script type="text/javascript" src="/media/js/ui/jquery.effects.bounce.js"></script> 
	<script type="text/javascript" src="/media/js/ui/jquery.effects.clip.js"></script> 
	<script type="text/javascript" src="/media/js/ui/jquery.effects.drop.js"></script> 
	<script type="text/javascript" src="/media/js/ui/jquery.effects.explode.js"></script> 
	<script type="text/javascript" src="/media/js/ui/jquery.effects.fold.js"></script> 
	<script type="text/javascript" src="/media/js/ui/jquery.effects.highlight.js"></script> 
	<script type="text/javascript" src="/media/js/ui/jquery.effects.pulsate.js"></script> 
	<script type="text/javascript" src="/media/js/ui/jquery.effects.scale.js"></script> 
	<script type="text/javascript" src="/media/js/ui/jquery.effects.shake.js"></script> 
	<script type="text/javascript" src="/media/js/ui/jquery.effects.slide.js"></script> 
	<script type="text/javascript" src="/media/js/ui/jquery.effects.transfer.js"></script> 
	  
  <script type="text/javascript" src="/media/js/SelectBox.js"></script>
  <script type="text/javascript" src="/media/js/SelectFilter2.js"></script>
  <script type="text/javascript" src="/media/js/locale_map.js"></script>
  
  {% block head %}{% endblock %}
  {% block rss %}{% endblock %}
</head>

<body {% if print_view %}onload="window.print()"{% endif %}>

<div id="container">
	{% if not print_view %}
	<div id="content-container1">
		<div id="content-container2">
			<table width="100%"><tr><td id="pagetitle">
			
				  <img src="/media/icons/logo.gif"/><a href="{% url welcome %}">S k o o l m a s t e r<br/>
				  <span class="undertitle">Integriran študentski informacijski sistem</span></a>			
			
			</td><td id="login">
					{% if user.is_authenticated %}
					<span class="undertitle">Prijavljen kot: <b>{{ user.get_profile.name }} {{ user.get_profile.surname }}</b><br/><a class="logout" href="{% url logout %}">Odjava</a></span>
					{% endif %}
			
			</td></tr></table>			
		</div>
	</div>	
	{% endif %}
	
	{% if not print_view %}
	<div id="content-container1">
	{% else %}
	<div id="content-container1-print">
	{% endif %}
	
		{% if not print_view %}
		<div id="content-container2">
		{% else %}
		<div id="content-container2-print">
		{% endif %}
			{% if not print_view %}
			<div id="section-navigation">
				{% if user.is_authenticated %}					
					<h3>Izpiti in ocene</h3>
					<div class="menublock">
						<ul>
						{% if user.get_profile.is_student %}
							<li> <a class="menu" href="{% url exam_signup %}">Prijava / Odjava</a></li>
							<li> <a class="menu" href="{% url exam_list user.get_profile.student_number %}">Kartotečni list (študent)</a></li>
						{% endif %}						
						{% if user.get_profile.is_administrator or user.get_profile.is_lecturer %}			  
							<li> <a class="menu" href="{% url exam_results 'points' %}">Izpis pisnih rezultatov</a></li>
							<li> <a class="menu" href="{% url exam_results 'grades' %}">Izpis ocen izpitov</a></li>
							<li> <a class="menu" href="{% url exam_insert %}">Nov izpitni rok</a></li>
							<li> <a class="menu" href="{% url exam_delete %}">Brisanje izpitnega roka</a></li>
							<li> <a class="menu" href="{% url exam_edit %}">Sprememba izpitnega roka</a></li>
							<li> <a class="menu" href="{% url exam_grades %}">Vnos rezultatov</a></li>
							<li> <a class="menu" href="{% url exam_finalgrades %}">Vnos končnih ocen</a></li>
							<li> <a class="menu" href="{% url exam_manual %}">Vnos ocene s prijavnico</a></li>
						{% endif %}
						{% if user.get_profile.is_lecturer %}
						<li> <a class="menu" href="{% url student_grades %}">Pregled ocen študentov</a></li>
						{% endif %}
						{% if user.get_profile.is_administrator %}
							<li> <a class="menu" href="{% url exam_list %}">Kartotečni list (referentka)</a></li>
							<li> <a class="menu" href="{% url exam_signup_admin_start %}">Prijava / Odjava študenta</a></li>
						{% endif %}
						</ul>
					</div>
					
					<h3>Predmeti</h3>
					<div class="menublock">
						<ul>
						{% if user.get_profile.is_maintainer %}
							<li> <a class="menu" href="{% url lecturers %}">Urejanje izvajalcev</a></li>
							<li> <a class="menu" href="{% url subjects_list %}">Izpis predmetnika</a></li>
						{% endif %}	
						{% if user.get_profile.is_administrator %}
							<li> <a class="menu" href="{% url subjects_manage %}">Urejanje izbirnih predmetov</a></li>
						{% endif %}							
						</ul>
					</div>
					
					<h3>Ostalo</h3>
					<div class="menublock">
						<ul>
						{% if user.get_profile.is_maintainer %}
							<li> <a class="menu" href="{% url codelists %}">Urejanje šifrantov</a></li>
							<li> <a class="menu" href="{% url program_management %}">Urejanje predmetnikov</a></li>
							<li> <a class="menu" href="{% url school_year_display %}">Urejanje šolskih let</a></li>							
						{% endif %}				
						
						{% if user.get_profile.is_administrator %}
						  <li> <a class="menu" href="{% url student_search %}">Poišči študenta</a></li>
							<li> <a class="menu" href="{% url enrollment_add %}">Vpis študenta v letnik</a></li>
						{% endif %}
						</ul>
					</div>
					
					{% if user.get_profile.is_administrator or user.get_profile.is_lecturer %}
					<h3>Poročila</h3>
					<div class="menublock">
						<ul>
							<li> <a class="menu" href="{% url report_subject %}">Izbirni predmeti</a></li>
							<li> <a class="menu" href="{% url report_enrolled %}">Vpisani študenti</a></li>
							<li> <a class="menu" href="{% url exam_results 'apps' %}">Prijavljeni kandidati</a></li>
						</ul>
					</div>
					{% endif %}
					
				{% endif %}			
			</div>			
			{% endif %}
<!--
			<div id="navigation">
		<ul>
			<li><a href="#">Home</a></li>
			<li><a href="#">About</a></li>
			<li><a href="#">Services</a></li>
			<li><a href="#">Contact us</a></li>
		</ul>
	</div>//-->
			{% if not print_view %}<div id="content">{% else %}<div id="content-print">{% endif %}
			{% block sys_message %}{% endblock %}
            {% if messages %}<ul class="messagelist">{% for message in messages %}<li class="m{{ message|slice:"0:1"}}">{{ message|slice:"2:" }}</li>{% endfor %}</ul>{% endif %}            						

			<h2>
				{% block pageheading %}{% endblock %}
			</h2>

			{% block content %}{% endblock %}


			</div>
			{% if not print_view %}
			<div id="aside">
				<h3>
					Pomoč
				</h3>
				<p>
					{% block help %} Pomoč za to stran ni na voljo. {% endblock %}
				</p>
			</div>
			{% endif %}

		</div>
		{% if not print_view %}
		<div id="footer">
			Copyright © Skoolmaster, 2010
		</div>		
		{% endif %}
	</div>
</div>
